home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
VideoToolbox 96.06.15
/
VideoToolboxSources
/
mc68881.h
< prev
next >
Wrap
Text File
|
1995-08-14
|
1KB
|
42 lines
/*
mc68881.h
Defines MPW C's mc68881 and mc68020 preprocessor symbols for THINK C and
Metrowerks CodeWarrior C, so that your programs can use them in "if" statements
without worrying about which compiler you're using. The symbols are 1 (i.e.
true) if the compiled code requires the chip (or better) and 0 otherwise.
CAUTION: Do not #include this file before FixMath.h
NOTE:
Apple's latest (6/95) Universal Header files (and VideoToolbox.h) define new macros:
GENERATING68k, GENERATINGPOWERPC, GENERATIONG68881, which provide a more standard
way of determining the hardware target. I recommend using those macros instead of
including this file.
HISTORY:
1992 dgp wrote it
7/28/94 dgp added support for Metrowerks CodeWarrior C
*/
#pragma once
#if THINK_C && THINK_C==1 /* THINK C 4 */
#define mc68881 _MC68881_
#define mc68020 _MC68020_
#endif
#if (THINK_C && THINK_C>1) || THINK_CPLUS || SYMANTEC_C /* SYMANTEC C,C++, THINK C 5,6,7,8, C++ */
#if __option(mc68881)
#define mc68881 1
#else
#define mc68881 0
#endif
#if __option(mc68020)
#define mc68020 1
#else
#define mc68020 0
#endif
#endif
#if defined(__MWERKS__) /* Metrowerks CodeWarrior C */
#define mc68881 __MC68881__
#define mc68020 __MC68020__
#endif